<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE>
<html>
<head>
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/layout.css" />
  <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/module_public.css" />
  <script type="text/javascript" src="__PUBLIC__/Js/jquery.js"></script>
  <script type="text/javascript" src="__PUBLIC__/Js/clockIn.js"></script>
</head>
<body>
  <div class="module_public">
     <div class="module_public_content">
        <h1> >> 申请列表 | <font color=green><a href="__URL__/add_apply">【填写申请】</a></font><font color=green><a href="__URL__/apply_list">【申请列表】</a></font><font color=green><a href="__ACTION__">【刷新】</a></font></h1>
     </div>
  <div class="module_public_main">
     <table>
        <tr>
          <td width="8%" align="center">编号</td>
          <td align="center">申请类型</td>
          <td align="center">是否批准</td>
          <td align="center">领导是否查看</td>
          <td align="center">回复内容</td>
          <td align="center">操作</td>
        </tr>
        <?php if(is_array($a_info)): $k = 0; $__LIST__ = $a_info;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($k % 2 );++$k;?><tr>
          <td width="8%" align="center"><?php echo ($k); ?></td>
          <?php if($v["a_type"] == '1'): ?><td align="center">请假申请</td>
          <?php else: ?>
          <td align="center">外出申请</td><?php endif; ?>
          <?php if($v["a_is_approval"] == '1'): ?><td align="center"><font color=green>已批准</font></td>
          <?php elseif($v["a_is_approval"] == '2'): ?>
          <td align="center"><font color=red>驳回申请</font></td>
          <?php else: ?>
          <td align="center"><font color=red>未批阅</font></td><?php endif; ?>
          <?php if($v["a_is_look"] == '1'): ?><td align="center"><font color=green>已查看</font></td>
          <?php else: ?>
          <td align="center"><font color=red>未查看</font></td><?php endif; ?>
          <?php if($v["a_reply"] == ''): ?><td align="center"><font color=red>未回复内容</font></td>
          <?php else: ?>
          <td align="center"><font color=green>已回复<a href="#" title="<?php echo ($v["a_reply"]); ?>" onclick="alert(this.title);">【查看】</a></font></td><?php endif; ?>
          
          <?php if($level == '1'): ?><td align="center">
            <a href="__URL__/look_apply/a_id/<?php echo ($v["a_id"]); ?>">查看申请详细</a>
          </td>
          <?php else: ?>
          <td align="center">
             <a href="__URL__/del_apply/a_id/<?php echo ($v["a_id"]); ?>">删除申请</a>
          </td><?php endif; ?>
        </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     </table>
  </div>
  </div>
</body>
</html>